<?php if ( $this->pageCount ) { ?>

<div align="center" style="padding: 5px; text-align: left" class="campform">

<div style="float: left;">Registro(s): <?php echo $this->firstItemNumber; ?> a <?php echo $this->lastItemNumber; ?> de <?php echo $this->totalItemCount; ?></div>

<div style="float: right;">

P&aacute;gina <?php echo $this->current; ?> de <?php echo $this->pageCount; ?>&nbsp;
<select id="paginationItemCountItem<?php echo $this->partial()->view->div_id; ?>" name="paginationItemCountItem<?php echo $this->partial()->view->div_id; ?>" class="campform" style="cursor:pointer" onchange="mudarPaginaDataGrid( '<?php echo $this->partial()->view->div_id; ?>' , this.value , '<?php echo $this->partial()->view->frmName; ?>' , '<?php echo $this->partial()->view->dataType; ?>' );">
<option value="<?php echo $this->url( array( 'list' => '10' ) );?>">10</option>
<option value="<?php echo $this->url( array( 'list' => '20' ) );?>">20</option>
<option value="<?php echo $this->url( array( 'list' => '30' ) );?>" selected>30</option>
<option value="<?php echo $this->url( array( 'list' => '50' ) );?>">50</option>
<option value="<?php echo $this->url( array( 'list' => '100' ) );?>">100</option>
</select>

</div>

<div style="text-align: center">

<!-- First page link -->
<?php if ( isset( $this->previous ) ) { ?>
  <a title="Primeiro" href="javascript:;" onclick="mudarPaginaDataGrid( '<?php echo $this->partial()->view->div_id; ?>' , '<?php echo $this->url( array( 'page' => $this->first ) ); ?>' , '<?php echo $this->partial()->view->frmName; ?>' , '<?php echo $this->partial()->view->dataType; ?>' );">
    <img alt="Primeiro" src="<?php echo PATH_IMG; ?>botoes/bt_primeira.gif" border="0" align="absmiddle" title="Primeiro">
  </a>
<?php } else { ?>
  <img alt="Primeiro" src="<?php echo PATH_IMG; ?>botoes/bt_primeira_hover.gif" border="0" align="absmiddle" title="Primeiro">
<?php } # end iF. ?>

<!-- Previous page link -->
<?php if ( isset( $this->previous ) ) { ?>
  <a title="Anterior" href="javascript:;" onclick="mudarPaginaDataGrid( '<?php echo $this->partial()->view->div_id; ?>' , '<?php echo $this->url( array( 'page' => $this->previous ) ); ?>' , '<?php echo $this->partial()->view->frmName; ?>' , '<?php echo $this->partial()->view->dataType; ?>' );">
   <img alt="Anterior" src="<?php echo PATH_IMG; ?>botoes/bt_anterior.gif" border="0" align="absmiddle" title="Anterior">
  </a>
<?php } else { ?>
  <img alt="Anterior" src="<?php echo PATH_IMG; ?>botoes/bt_anterior_hover.gif" border="0" align="absmiddle" title="Anterior">
<?php } # end iF. ?>

<select id="paginationControlItem<?php echo $this->partial()->view->div_id; ?>" name="paginationControlItem<?php echo $this->partial()->view->div_id; ?>" class="campform" style="cursor:pointer" onchange="mudarPaginaDataGrid( '<?php echo $this->partial()->view->div_id; ?>' , this.value , '<?php echo $this->partial()->view->frmName; ?>' , '<?php echo $this->partial()->view->dataType; ?>' );">
<?php foreach ( $this->pagesInRange as $page ) { ?>
  <?php $selected = ( $page == $this->current ) ? ' selected="selected"' : ''; ?>
  <option value="<?php
        echo $this->url( array( 'page' => $page ) ); ?>"<?php echo $selected; ?>>
    <?php echo $page; ?>
  </option>
<?php } # end foreach. ?>
</select>

<!-- Next page link -->
<?php if ( isset( $this->next ) ) { ?>
  <a title="Pr&oacute;ximo" href="javascript:;" onclick="mudarPaginaDataGrid( '<?php echo $this->partial()->view->div_id; ?>' , '<?php echo $this->url( array( 'page' => $this->next ) ); ?>' , '<?php echo $this->partial()->view->frmName; ?>' , '<?php echo $this->partial()->view->dataType; ?>' );">
    <img alt="Pr&oacute;ximo" src="<?php echo PATH_IMG; ?>botoes/bt_proxima.gif" border="0" align="absmiddle" title="Pr&oacute;ximo"> 
  </a>
<?php } else { ?>
  <img alt="Pr&oacute;ximo" src="<?php echo PATH_IMG; ?>botoes/bt_proxima_hover.gif" border="0" align="absmiddle" title="Pr&oacute;ximo">
<?php } # end iF. ?>

<!-- Last page link -->
<?php if ( isset( $this->next ) ) { ?>
  <a title="&Uacute;ltimo" href="javascript:;" onclick="mudarPaginaDataGrid( '<?php echo $this->partial()->view->div_id; ?>' , '<?php echo $this->url( array( 'page' => $this->last ) ); ?>' , '<?php echo $this->partial()->view->frmName; ?>' , '<?php echo $this->partial()->view->dataType; ?>' );">
    <img alt="&Uacute;ltimo" src="<?php echo PATH_IMG; ?>botoes/bt_ultima.gif" border="0" align="absmiddle" title="&Uacute;ltimo">
  </a>
<?php } else { ?>
  <img alt="&Uacute;ltimo" src="<?php echo PATH_IMG; ?>botoes/bt_ultima_hover.gif" border="0" align="absmiddle" title="&Uacute;ltimo">
<?php } # end iF. ?>

</div>

</div>

<script type="text/javascript">

$(document).ready( function() 
{
	$( "#paginationItemCountItem<?php echo $this->partial()->view->div_id; ?>" ).val( '<?php echo $this->itemCountPerPage; ?>' );
});

</script>

<?php } # end iF. ?>